package com.mes.schedule.ScheduleOperation.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.common.domain.BasicModel;



/**
 * 分批事件
 * date: 2017-03-12 <br/>  
 * @author lcs  
 * @version   
 * @since JDK 1.6
 */
@Entity()
@org.hibernate.annotations.Entity(dynamicInsert=false,dynamicUpdate=false)
@Table(name = "T_OPERATION_SPLITBATCH")
@BatchSize(size=20)
@Lazy(value=true)
public class OperationSplitBatch extends BasicModel{
		
	/**
	 *  唯一号		
	 */
	@Id
	@GenericGenerator(name = "scheduleOperationUid", strategy = "assigned")
	@Column(name="UNIQUEID")
	private String scheduleOperationUid;
	
	@Override
	public String getUuid() {
		return scheduleOperationUid;
	}

	@Override
	public void setUuid(String uuid) {
		this.scheduleOperationUid = uuid;
	}
	
	/**
	 * 	应该处理该事件的调度方案唯一号	
	 */	
	@Column(name="SCHEDULEUID")
	private String scheduleUid;
	
	
	/**
	 * 图号
	 */
	@Column(name="DRAWINGID")
	private String drawingId;
	
	/**
	 * 原始批次
	 */
	@Column(name="ORIGINALBATCHNUM")
	private String originalBatchNum;
	
	/**
	 * 新批次
	 */
	@Column(name="NEWBATCHNUM")
	private String newBatchNum;
	
	/**
	 * 开始工序
	 */
	@Column(name="STARTOPERATION")
	private String startOperaton;

	/**
	 * 父操作uid
	 */
	@Column(name="PARENTOPUNIQUEID")
	private String parentUniqueId;
	
	/**
	 * 每批数量
	 */
	@Column(name="SPLITNUM")
	private Double splitNum;
	
	
	
	
	


	

	public String getScheduleOperationUid() {
		return scheduleOperationUid;
	}

	public void setScheduleOperationUid(String scheduleOperationUid) {
		this.scheduleOperationUid = scheduleOperationUid;
	}


	public String getDrawingId() {
		return drawingId;
	}

	public void setDrawingId(String drawingId) {
		this.drawingId = drawingId;
	}

	

	public String getScheduleUid() {
		return scheduleUid;
	}

	public void setScheduleUid(String scheduleUid) {
		this.scheduleUid = scheduleUid;
	}


	public String getOriginalBatchNum() {
		return originalBatchNum;
	}

	public void setOriginalBatchNum(String originalBatchNum) {
		this.originalBatchNum = originalBatchNum;
	}


	public String getNewBatchNum() {
		return newBatchNum;
	}

	public void setNewBatchNum(String newBatchNum) {
		this.newBatchNum = newBatchNum;
	}


	public String getStartOperaton() {
		return startOperaton;
	}

	public void setStartOperaton(String startOperaton) {
		this.startOperaton = startOperaton;
	}


	public String getParentUniqueId() {
		return parentUniqueId;
	}

	public void setParentUniqueId(String parentUniqueId) {
		this.parentUniqueId = parentUniqueId;
	}


	public Double getSplitNum() {
		return splitNum;
	}

	public void setSplitNum(Double splitNum) {
		this.splitNum = splitNum;
	}

	
	

	
}
